package com.wskj.workbench.service;

import com.wskj.common.core.mybatisplus.core.IServicePlus;
import com.wskj.common.core.page.TableDataInfo;
import com.wskj.workbench.bo.app.AppTbUserReceiveAddBo;
import com.wskj.workbench.bo.app.AppTbUserReceiveEditBo;
import com.wskj.workbench.bo.app.AppTbUserReceiveQueryBo;
import com.wskj.workbench.bo.web.TbUserReceiveAddBo;
import com.wskj.workbench.bo.web.TbUserReceiveEditBo;
import com.wskj.workbench.bo.web.TbUserReceiveQueryBo;
import com.wskj.workbench.domain.TbUserReceive;
import com.wskj.workbench.vo.app.AppTbUserReceiveVo;
import com.wskj.workbench.vo.web.TbUserReceiveVo;

import java.util.Collection;
import java.util.List;

/**
 * 客户收货地址信息Service接口
 *
 * @author wsdz
 * @date 2022-09-26
 */
public interface ITbUserReceiveService extends IServicePlus<TbUserReceive> {
	/**
	 * 查询单个
	 * @return
	 */
	TbUserReceiveVo queryById(Long receiveId);

	/**
	 * 查询列表
	 */
    TableDataInfo<TbUserReceiveVo> queryPageList(TbUserReceiveQueryBo bo);

	/**
	 * 查询列表
	 */
	List<TbUserReceiveVo> queryList(TbUserReceiveQueryBo bo);

	/**
	 * 根据新增业务对象插入客户收货地址信息
	 * @param bo 客户收货地址信息新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(TbUserReceiveAddBo bo);

	/**
	 * 根据编辑业务对象修改客户收货地址信息
	 * @param bo 客户收货地址信息编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(TbUserReceiveEditBo bo);

	/**
	 * 校验并删除数据
	 * @param ids 主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 导入数据
     *
     * @param tzUserReceiveList 排污口水质数据
     * @return String
     */
	String importTzUserReceive(List<TbUserReceiveVo> tzUserReceiveList);

	/**
	 * 添加收货地址
	 * @param addBo
	 * @return
	 */
	int addReceive(AppTbUserReceiveAddBo addBo);

	/**
	 * 编辑收货地址
	 * @param editBo
	 * @return
	 */
	int editReceive(AppTbUserReceiveEditBo editBo);

	/**
	 * 设置默认地址
	 * @param editBo
	 * @return
	 */
	int editDefault(AppTbUserReceiveEditBo editBo);

	/**
	 * App分页查询
	 * @param queryBo
	 * @return
	 */
	TableDataInfo<AppTbUserReceiveVo> pageList(AppTbUserReceiveQueryBo queryBo);
}
